/* 全局变量 */
:root {
    --primary-color: #2d5a27;
    --secondary-color: #8ba888;
    --accent-color: #e8b059;
    --text-color: #333;
    --light-bg: #F8F1E4;
}

/* 导航栏样式 */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 24px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: var(--light-bg);
}

/* AI助手样式 */
.ai-assistant {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.ai-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.ai-toggle:hover {
    transform: scale(1.1);
}

.ai-toggle i {
    font-size: 24px;
}

.ai-chat {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat.active {
    display: flex;
}

.chat-header {
    padding: 15px;
    background: var(--primary-color);
    color: white;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
}

.message.bot {
    margin-right: auto;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 15px 15px 15px 0;
}

.message.user {
    margin-left: auto;
    background: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 15px 15px 0 15px;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chat-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
} 